package com.woniuxy.controller;

import com.woniuxy.entity.RbacManager;
import com.woniuxy.entity.ResponseEntity;
import com.woniuxy.service.ManagerLoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: ideaAdmin
 * TODO: Class
 * TODO: 用户权限的认证和权限判断
 * Date: 2022/2/23:17:04
 * Description:
 */
@RestController
@CrossOrigin
public class LoginController {
    @Autowired
    ManagerLoginService managerloginService;
    @RequestMapping("/login")
    public ResponseEntity login(@RequestBody RbacManager rbacManager){
        return managerloginService.findManager(rbacManager);
    }
}
